.class Lcom/zuiapps/library/ui/UpgradeDialog$3;
.super Ljava/lang/Object;
.source "UpgradeDialog.java"

# interfaces
.implements Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/zuiapps/library/ui/UpgradeDialog;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/zuiapps/library/ui/UpgradeDialog;

.field final synthetic val$descText:Landroid/widget/TextView;

.field final synthetic val$scrollView:Landroid/widget/ScrollView;


# direct methods
.method constructor <init>(Lcom/zuiapps/library/ui/UpgradeDialog;Landroid/widget/ScrollView;Landroid/widget/TextView;)V
    .registers 4
    .param p1, "this$0"    # Lcom/zuiapps/library/ui/UpgradeDialog;

    .prologue
    .line 102
    iput-object p1, p0, Lcom/zuiapps/library/ui/UpgradeDialog$3;->this$0:Lcom/zuiapps/library/ui/UpgradeDialog;

    iput-object p2, p0, Lcom/zuiapps/library/ui/UpgradeDialog$3;->val$scrollView:Landroid/widget/ScrollView;

    iput-object p3, p0, Lcom/zuiapps/library/ui/UpgradeDialog$3;->val$descText:Landroid/widget/TextView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onGlobalLayout()V
    .registers 5

    .prologue
    .line 106
    iget-object v2, p0, Lcom/zuiapps/library/ui/UpgradeDialog$3;->val$scrollView:Landroid/widget/ScrollView;

    invoke-virtual {v2}, Landroid/widget/ScrollView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout$LayoutParams;

    .line 107
    .local v1, "lp":Landroid/widget/LinearLayout$LayoutParams;
    iget-object v2, p0, Lcom/zuiapps/library/ui/UpgradeDialog$3;->val$descText:Landroid/widget/TextView;

    invoke-virtual {v2}, Landroid/widget/TextView;->getLineCount()I

    move-result v0

    .line 108
    .local v0, "line":I
    if-eqz v1, :cond_33

    .line 109
    const/16 v2, 0xa

    if-le v0, v2, :cond_33

    .line 110
    iget-object v2, p0, Lcom/zuiapps/library/ui/UpgradeDialog$3;->this$0:Lcom/zuiapps/library/ui/UpgradeDialog;

    const/high16 v3, 0x437a0000

    invoke-virtual {v2, v3}, Lcom/zuiapps/library/ui/UpgradeDialog;->applyDimension(F)F

    move-result v2

    float-to-int v2, v2

    iput v2, v1, Landroid/widget/LinearLayout$LayoutParams;->height:I

    .line 111
    iget-object v2, p0, Lcom/zuiapps/library/ui/UpgradeDialog$3;->val$scrollView:Landroid/widget/ScrollView;

    invoke-virtual {v2}, Landroid/widget/ScrollView;->requestLayout()V

    .line 112
    sget v2, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v3, 0x10

    if-ge v2, v3, :cond_34

    .line 113
    iget-object v2, p0, Lcom/zuiapps/library/ui/UpgradeDialog$3;->val$scrollView:Landroid/widget/ScrollView;

    invoke-virtual {v2}, Landroid/widget/ScrollView;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v2

    invoke-virtual {v2, p0}, Landroid/view/ViewTreeObserver;->removeGlobalOnLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

    .line 120
    :cond_33
    :goto_33
    return-void

    .line 115
    :cond_34
    iget-object v2, p0, Lcom/zuiapps/library/ui/UpgradeDialog$3;->val$scrollView:Landroid/widget/ScrollView;

    invoke-virtual {v2}, Landroid/widget/ScrollView;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v2

    invoke-virtual {v2, p0}, Landroid/view/ViewTreeObserver;->removeOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V

    goto :goto_33
.end method
